package eventdisplay;

import processing.core.PApplet;

public class VetoShield {

	PApplet parent;
	double z1, z2;

	VetoShield(PApplet p, double Vetoz1, double Vetoz2) {
		parent = p;
		z1 = Vetoz1;
		z2 = Vetoz2;
	}
	
	void vertex(){
	}

	public void drawVetoShield1(int col) {
		parent.stroke(col);
		parent.noFill();

		parent.beginShape();
		parent.vertex(5*30,-5*30,(float) z1);
		parent.vertex(5*55,-5*30,(float) z1);
		parent.vertex(5*55,-5*30,(float) z2);
		parent.vertex(5*30,-5*30,(float) z2);
		parent.endShape(parent.CLOSE);

		parent.beginShape();
		parent.vertex(-5*30,-5*30,(float) z1);
		parent.vertex(-5*55,-5*30,(float) z1);
		parent.vertex(-5*55,-5*30,(float) z2);
		parent.vertex(-5*30,-5*30,(float) z2);
		parent.endShape(parent.CLOSE);

		parent.beginShape();
		parent.vertex(5*30,-5*30,(float) z1);
		parent.vertex(5*20,-5*44,(float) z1);
		parent.vertex(5*20,-5*44,(float) z2);
		parent.vertex(5*30,-5*30,(float) z2);
		parent.endShape(parent.CLOSE);

		parent.beginShape();
		parent.vertex(-5*30,-5*30,(float) z1);
		parent.vertex(-5*20,-5*44,(float) z1);
		parent.vertex(-5*20,-5*44,(float) z2);
		parent.vertex(-5*30,-5*30,(float) z2);
		parent.endShape(parent.CLOSE);

		parent.beginShape();
		parent.vertex(5*20,-5*44,(float) z1);
		parent.vertex(-5*20,-5*44,(float) z1);
		parent.vertex(-5*20,-5*44,(float) z2);
		parent.vertex(5*20,-5*44,(float) z2);
		parent.endShape(parent.CLOSE);
	  }

	public void drawVetoShield2(int col) {
		parent.stroke(col);
		parent.noFill();

		parent.beginShape();
		parent.vertex((float) (-5*42.5),5*2,(float) z1);
		parent.vertex((float) (-5*42.5),-5*14,(float) z1);
		parent.vertex((float) (-5*42.5),-5*14,(float) z2);
		parent.vertex((float) (-5*42.5),5*2,(float) z2);
		parent.endShape(parent.CLOSE);

		parent.beginShape();
		parent.vertex((float) (5*42.5),5*2,(float) z1);
		parent.vertex((float) (5*42.5),-5*14,(float) z1);
		parent.vertex((float) (5*42.5),-5*14,(float) z2);
		parent.vertex((float) (5*42.5),5*2,(float) z2);
		parent.endShape(parent.CLOSE);
	}

	public void drawVetoShield3(int col) {
		parent.stroke(col);
		parent.noFill();

		parent.beginShape();
		parent.vertex(5*70,(float) (-5*37.5),(float) z1);
		parent.vertex(5*70,-5*12,(float) z1);
		parent.vertex(5*70,-5*12,(float) z2);
		parent.vertex(5*70,(float) (-5*37.5),(float) z2);
		parent.endShape(parent.CLOSE);

		parent.beginShape();
		parent.vertex(5*70,(float) (-5*37.5),(float) z1);
		parent.vertex(5*65,-5*44,(float) z1);
		parent.vertex(5*65,-5*44,(float) z2);
		parent.vertex(5*70,(float) (-5*37.5),(float) z2);
		parent.endShape(parent.CLOSE);

		parent.beginShape();
		parent.vertex(-5*70,(float) (-5*37.5),(float) z1);
		parent.vertex(-5*70,-5*12,(float) z1);
		parent.vertex(-5*70,-5*12,(float) z2);
		parent.vertex(-5*70,(float) (-5*37.5),(float) z2);
		parent.endShape(parent.CLOSE);

		parent.beginShape();
		parent.vertex(-5*70,(float) (-5*37.5),(float) z1);
		parent.vertex(-5*65,-5*44,(float) z1);
		parent.vertex(-5*65,-5*44,(float) z2);
		parent.vertex(-5*70,(float) (-5*37.5),(float) z2);
		parent.endShape(parent.CLOSE);
	}
}
